<template>
  <input
    id="yg_input"
    :name="name"
    :type="type"
    :placeholder="placeholder"
    :value="value"
    :disabled="disabled"
    @input="$emit('input', $event.target.value)"
    @change="$emit('change', $event.target.value)"
    @focus="$emit('focus', $event.target.value)"
    @blur="$emit('blur', $event.target.value)"
  />
</template>

<script>
export default {
  name: "yg-input",
  props: {
    type: {
      type: String,
      default: "text",
    },
    placeholder: {
      type: String,
      default: "",
    },
    name: {
      type: String,
      default: "",
    },
    value: {
      type: String,
      default: "",
    },
    disabled: {
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {};
  },
};
</script>

<style lang="scss" scoped>
@import "@/assets/scss/global_variable.scss";
#yg_input {
  margin: 0;
  width: 100%;
  height: max-content;
  font-size: 16px;
  font-weight: 400;
  color: #171717;
  line-height: 24px;
  border: none;
  background-color: transparent;
  outline: none;
  &::placeholder {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 24px;
  }
}
</style>
